<?php

class HUsers {
	function getIdByUsername($username) {
		$a = HSql::fetch2Array(HSql::doQuery("SELECT * FROM portal_users WHERE username = '$username'"));				
		return $a[0]['id'];
	}
}

?>